package com.i360day.invoker.proxy;

/**
 * @author liju.z
 */
public class TargetProxy<T> {

    private final Class<T> type;
    private final String name;
    private final String url;
    private final ClassLoader classLoader;

    public TargetProxy(Class<T> type, String name, String url, ClassLoader classLoader) {
        this.type = type;
        this.name = name;
        this.url = url;
        this.classLoader = classLoader;
    }

    public Class<T> getType() {
        return type;
    }

    public ClassLoader getClassLoader() {
        return classLoader;
    }

    public String getName() {
        return name;
    }

    public String getUrl() {
        return url;
    }

    @Override
    public String toString() {
        return "TargetProxy{" +
                "type=" + type +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
